(function(){
var init = function() {
    var activityRule = document.getElementById("activity-rule");
    var activityRuleFl = new FloatLayer(activityRule);
    var activityRuleBtn = document.getElementsByClassName("activity-rule-btn")[0];
    util.addHandler(activityRuleBtn,"click",function(){
        activityRuleFl.show();
        window._hmt && window._hmt.push(['_trackEvent', '意外险活动', '活动规则', "活动规则"]);
    });
    var closeBtn = document.getElementById("close-btn");
    util.addHandler(closeBtn,"click",function(){
        activityRuleFl.hide();
    });
}
window.onload = function() {
    init();
}
})();